package stcpscheculer;

import java.io.BufferedReader;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;

public class ScheduleInterface {

	public static void main(String[] args) throws IOException{
	
		String fname = "data.txt";
		String line;
		
		if(args.length == 1){
			fname = args[0];
		} 
		File confFile = new File(fname);
		FileReader Reader = null;
	    try
	    {
	    	Reader = new FileReader(fname);
	    } 
	    catch (FileNotFoundException e) 
	    {  
	        System.out.println( "File "+ fname +" not found" );
	        e.printStackTrace();
	    }
	    BufferedReader br = new BufferedReader(Reader);

	    try
	    {
	        while( (line = br.readLine()) != null )
		    {
		        System.out.println( line );
		    }
	    } 
	    catch (IOException e) {
	        System.out.println(e.getMessage());
	    }
		
	}
	
}
